#pragma once
#include "passwordCollection.h"
#include "passwordGenerator.h"

namespace passwordContainer {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Summary for Form1
	/// </summary>
	public ref class PasswordContainer : public System::Windows::Forms::Form
	{
	public:
		PasswordContainer(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~PasswordContainer()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::MenuStrip^  menuStrip1;
	protected: 
	private: System::Windows::Forms::ToolStripMenuItem^  fileToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  editToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  helpToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  aboutToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  openPasswordFileToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  savePasswordFileToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  exitToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  setMasterPasswordToolStripMenuItem;
	private: System::Windows::Forms::ToolStrip^  toolStrip1;
	private: System::Windows::Forms::ToolStripButton^  openPassFile;
    private: System::Windows::Forms::ToolStripButton^  savePassFile;

	private: System::Windows::Forms::ToolStripButton^  setMasPwd;
    private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel1;
	private: System::Windows::Forms::OpenFileDialog^  openPasswordFileDialog;





	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(PasswordContainer::typeid));
			this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
			this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->openPasswordFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->savePasswordFileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->exitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->editToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->setMasterPasswordToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->helpToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->aboutToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->toolStrip1 = (gcnew System::Windows::Forms::ToolStrip());
			this->openPassFile = (gcnew System::Windows::Forms::ToolStripButton());
			this->savePassFile = (gcnew System::Windows::Forms::ToolStripButton());
			this->setMasPwd = (gcnew System::Windows::Forms::ToolStripButton());
			this->tableLayoutPanel1 = (gcnew System::Windows::Forms::TableLayoutPanel());
			this->openPasswordFileDialog = (gcnew System::Windows::Forms::OpenFileDialog());
			this->menuStrip1->SuspendLayout();
			this->toolStrip1->SuspendLayout();
			this->SuspendLayout();
			// 
			// menuStrip1
			// 
			this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->fileToolStripMenuItem, 
				this->editToolStripMenuItem, this->helpToolStripMenuItem});
			this->menuStrip1->Location = System::Drawing::Point(0, 0);
			this->menuStrip1->Name = L"menuStrip1";
			this->menuStrip1->Size = System::Drawing::Size(729, 24);
			this->menuStrip1->TabIndex = 0;
			this->menuStrip1->Text = L"menuStrip1";
			// 
			// fileToolStripMenuItem
			// 
			this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->openPasswordFileToolStripMenuItem, 
				this->savePasswordFileToolStripMenuItem, this->exitToolStripMenuItem});
			this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
			this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);
			this->fileToolStripMenuItem->Text = L"File";
			// 
			// openPasswordFileToolStripMenuItem
			// 
			this->openPasswordFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"openPasswordFileToolStripMenuItem.Image")));
			this->openPasswordFileToolStripMenuItem->Name = L"openPasswordFileToolStripMenuItem";
			this->openPasswordFileToolStripMenuItem->Size = System::Drawing::Size(177, 22);
			this->openPasswordFileToolStripMenuItem->Text = L"Open Password File";
			this->openPasswordFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PasswordContainer::openPassFile_Click);
			// 
			// savePasswordFileToolStripMenuItem
			// 
			this->savePasswordFileToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"savePasswordFileToolStripMenuItem.Image")));
			this->savePasswordFileToolStripMenuItem->Name = L"savePasswordFileToolStripMenuItem";
			this->savePasswordFileToolStripMenuItem->Size = System::Drawing::Size(177, 22);
			this->savePasswordFileToolStripMenuItem->Text = L"Save Password File";
			this->savePasswordFileToolStripMenuItem->Click += gcnew System::EventHandler(this, &PasswordContainer::savePassFile_Click);
			// 
			// exitToolStripMenuItem
			// 
			this->exitToolStripMenuItem->Name = L"exitToolStripMenuItem";
			this->exitToolStripMenuItem->Size = System::Drawing::Size(177, 22);
			this->exitToolStripMenuItem->Text = L"Exit";
			// 
			// editToolStripMenuItem
			// 
			this->editToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->setMasterPasswordToolStripMenuItem});
			this->editToolStripMenuItem->Name = L"editToolStripMenuItem";
			this->editToolStripMenuItem->Size = System::Drawing::Size(39, 20);
			this->editToolStripMenuItem->Text = L"Edit";
			// 
			// setMasterPasswordToolStripMenuItem
			// 
			this->setMasterPasswordToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"setMasterPasswordToolStripMenuItem.Image")));
			this->setMasterPasswordToolStripMenuItem->Name = L"setMasterPasswordToolStripMenuItem";
			this->setMasterPasswordToolStripMenuItem->Size = System::Drawing::Size(182, 22);
			this->setMasterPasswordToolStripMenuItem->Text = L"Set Master Password";
			this->setMasterPasswordToolStripMenuItem->Click += gcnew System::EventHandler(this, &PasswordContainer::setMasPwd_Click);
			// 
			// helpToolStripMenuItem
			// 
			this->helpToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->aboutToolStripMenuItem});
			this->helpToolStripMenuItem->Name = L"helpToolStripMenuItem";
			this->helpToolStripMenuItem->Size = System::Drawing::Size(44, 20);
			this->helpToolStripMenuItem->Text = L"Help";
			// 
			// aboutToolStripMenuItem
			// 
			this->aboutToolStripMenuItem->Name = L"aboutToolStripMenuItem";
			this->aboutToolStripMenuItem->Size = System::Drawing::Size(107, 22);
			this->aboutToolStripMenuItem->Text = L"About";
			// 
			// toolStrip1
			// 
			this->toolStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->openPassFile, this->savePassFile, 
				this->setMasPwd});
			this->toolStrip1->Location = System::Drawing::Point(0, 24);
			this->toolStrip1->Name = L"toolStrip1";
			this->toolStrip1->Size = System::Drawing::Size(729, 25);
			this->toolStrip1->TabIndex = 1;
			this->toolStrip1->Text = L"toolStrip1";
			// 
			// openPassFile
			// 
			this->openPassFile->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
			this->openPassFile->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"openPassFile.Image")));
			this->openPassFile->ImageTransparentColor = System::Drawing::Color::Magenta;
			this->openPassFile->Name = L"openPassFile";
			this->openPassFile->Size = System::Drawing::Size(23, 22);
			this->openPassFile->Text = L"Open Password File";
			this->openPassFile->Click += gcnew System::EventHandler(this, &PasswordContainer::openPassFile_Click);
			// 
			// savePassFile
			// 
			this->savePassFile->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
			this->savePassFile->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"savePassFile.Image")));
			this->savePassFile->ImageTransparentColor = System::Drawing::Color::Magenta;
			this->savePassFile->Name = L"savePassFile";
			this->savePassFile->Size = System::Drawing::Size(23, 22);
			this->savePassFile->Text = L"Save Password File";
			this->savePassFile->Click += gcnew System::EventHandler(this, &PasswordContainer::savePassFile_Click);
			// 
			// setMasPwd
			// 
			this->setMasPwd->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
			this->setMasPwd->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"setMasPwd.Image")));
			this->setMasPwd->ImageTransparentColor = System::Drawing::Color::Magenta;
			this->setMasPwd->Name = L"setMasPwd";
			this->setMasPwd->Size = System::Drawing::Size(23, 22);
			this->setMasPwd->Text = L"Set Master Password";
			this->setMasPwd->Click += gcnew System::EventHandler(this, &PasswordContainer::setMasPwd_Click);
			// 
			// tableLayoutPanel1
			// 
			this->tableLayoutPanel1->ColumnCount = 4;
			this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle()));
			this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle()));
			this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle()));
			this->tableLayoutPanel1->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle()));
			this->tableLayoutPanel1->Location = System::Drawing::Point(104, 68);
			this->tableLayoutPanel1->Name = L"tableLayoutPanel1";
			this->tableLayoutPanel1->RowCount = 2;
			this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle()));
			this->tableLayoutPanel1->RowStyles->Add((gcnew System::Windows::Forms::RowStyle()));
			this->tableLayoutPanel1->Size = System::Drawing::Size(625, 395);
			this->tableLayoutPanel1->TabIndex = 2;
			// 
			// openPasswordFileDialog
			// 
			this->openPasswordFileDialog->FileName = L"openPasswordFileDialog";
			this->openPasswordFileDialog->Tag = L"pwd";
			this->openPasswordFileDialog->Title = L"Open Password File";
			// 
			// PasswordContainer
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(729, 460);
			this->Controls->Add(this->tableLayoutPanel1);
			this->Controls->Add(this->toolStrip1);
			this->Controls->Add(this->menuStrip1);
			this->MainMenuStrip = this->menuStrip1;
			this->Name = L"PasswordContainer";
			this->Text = L"Password Container";
			this->menuStrip1->ResumeLayout(false);
			this->menuStrip1->PerformLayout();
			this->toolStrip1->ResumeLayout(false);
			this->toolStrip1->PerformLayout();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
private: System::Void setMasPwd_Click(System::Object^  sender, System::EventArgs^  e) 
{
        
}
private: System::Void openPassFile_Click(System::Object^  sender, System::EventArgs^  e) 
{
	//openP
}

private: System::Void savePassFile_Click(System::Object^  sender, System::EventArgs^  e) 
{
}
};
}

